﻿IF EXISTS (SELECT * FROM sysobjects WHERE type = 'P' AND name = 'maquinaAdd')
	BEGIN
		DROP  Procedure  maquinaAdd
	END
GO

CREATE PROCEDURE [dbo].[maquinaAdd] 	
	(	
		@empresa_id AS INT,
		@nombre AS VARCHAR(50),
		@costo_hora AS MONEY
	)	
AS
BEGIN	
	SET NOCOUNT ON
	
	INSERT INTO Lit_Maquina (EmpresaId, Nombre, CostoxHora, activo)
	VALUES (@empresa_id, @nombre, @costo_hora, 1)  
		
	SET NOCOUNT OFF
END
GO